package com.thd.springboottest.security.securitycustom;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * com.thd.springboottest.security.config.MyPasswordEncoder
 *
 * @author: wanglei62
 * @DATE: 2022/6/24 17:06
 **/
public class MyPasswordEncoder implements PasswordEncoder {
    @Override
    public String encode(CharSequence charSequence) {
        return charSequence.toString();
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        return charSequence.toString().equals(s);
    }
}
